package nc.ui.capub.proxy;

import nc.bs.framework.common.NCLocator;
import nc.itf.capub.fileparse.INFTImportFile;
import nc.itf.capub.formular.INFTFormulaParse;
import nc.itf.capub.pubitf.INFTPub;
import nc.itf.capub.tallyquery.ITallyQuery;

public class ProxyEjb {
	public static INFTPub getIFTPub() {
		try {
			return (INFTPub) NCLocator.getInstance().lookup(INFTPub.class.getName());
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

	public static INFTFormulaParse getINFTFormulaParse() {
		try {
			return (INFTFormulaParse) NCLocator.getInstance().lookup(INFTFormulaParse.class.getName());
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

	public static INFTImportFile getIImportFile() {
		try {
			return (INFTImportFile) NCLocator.getInstance().lookup(INFTImportFile.class.getName());
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

	public static ITallyQuery getITallyQuery() {
		try {
			return (ITallyQuery) NCLocator.getInstance().lookup(ITallyQuery.class.getName());
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

	/*
	 * public static IFTHgyw getIFTHgyw() { try { return (IFTHgyw)
	 * NCLocator.getInstance().lookup( IFTHgyw.class.getName()); } catch
	 * (Exception e) { e.printStackTrace(); return null; } } public static IFTTZ
	 * getIFTTZ() { try { return (IFTTZ) NCLocator.getInstance().lookup(
	 * IFTTZ.class.getName()); } catch (Exception e) { e.printStackTrace();
	 * return null; } } public static IFloatInterest getIFloatInterest(){ try {
	 * return (IFloatInterest) NCLocator.getInstance().lookup(
	 * IFloatInterest.class.getName()); } catch (Exception e) {
	 * e.printStackTrace(); return null; } } public static IInterestComplete
	 * getIInterestComplete(){ try { return (IInterestComplete)
	 * NCLocator.getInstance().lookup( IInterestComplete.class.getName()); }
	 * catch (Exception e) { e.printStackTrace(); return null; } }
	 */
}
